package com.lean.android.adsdk

import android.text.TextPaint
import android.text.style.ClickableSpan
import android.view.View
import androidx.annotation.ColorInt


class UrlClickableSpan(
    private val url: String, @ColorInt private val color: Int, private val title: String? = null
) : ClickableSpan() {

    override fun onClick(widget: View) {
//        SimpleBrowserActivity.launch(widget.context, url, title)
    }

    override fun updateDrawState(ds: TextPaint) {
        super.updateDrawState(ds)
        ds.color = color
        ds.isUnderlineText = false
    }
}